package org.dromara.vehicle.modules.vehicle.domain.vo;

import cn.hutool.core.date.DatePattern;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.vehicle.modules.vehicle.domain.VehicleInsuranceInfo;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;



/**
 * 车辆保险信息视图对象 vehicle_insurance_info
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = VehicleInsuranceInfo.class)
public class VehicleInsuranceInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ExcelProperty(value = "主键ID")
    private Long id;

    /**
     * 关联车辆基本信息表ID
     */
    @ExcelProperty(value = "关联车辆基本信息表ID")
    private Long vehicleId;

    /**
     * 投保日期
     */
    @ExcelProperty(value = "投保日期")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date insuredDate;

    /**
     * 保险公司名称
     */
    @ExcelProperty(value = "保险公司名称")
    private String insuranceCompany;

    /**
     * 险种名称
     */
    @ExcelProperty(value = "险种名称")
    private String insuranceType;

    /**
     * 保险期限开始时间
     */
    @ExcelProperty(value = "保险期限开始时间")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date insuranceBeginDate;

    /**
     * 保险期限截止时间
     */
    @ExcelProperty(value = "保险期限截止时间")
    @JsonFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date insuranceEndDate;

    /**
     * 保费金额(元)
     */
    @ExcelProperty(value = "保费金额(元)")
    private BigDecimal premium;


}
